﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Timesheet.Domain;

namespace Timesheet.Service
{
    public interface IUserService
    {
        IList<User> getAllUsers();

        IList<User> getAllOrderUsers();

        bool CheckAccountLogin(string name, string encryptPassword);

        User GetByUsername(string name);
        void Delete(User info);
        void Update(User info);
        void Save(User info);

        User GetUserById(long userInfoId);

        IList<Domain.User> getAllUsersForManagement();       

        IList<Domain.User> GetCoodinators(long prjId);     
        IList<Domain.User> GetCoodinators();
        IList<Domain.User> GetTeamLeads();
        IList<User> GetCoodinatorsNotInProjectId(long prjID);
        IList<Domain.User> GetTeamLeads(long prjId);
        void UpdateTeamLead(long prjId,User user);
        void DelPrjLead(long prjId,User user);

        List<User> GetActivedCoodinators(long p);
    }

}
